package org.jeecg.modules.jindie.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import org.jeecg.modules.jindie.mapper.TBdCustomerMapper;
import org.jeecg.modules.jindie.entity.CustomerEntity;
import org.jeecg.modules.jindie.service.TBdCustomerService;

import java.util.List;


@Service("tBdCustomerService")
@DS("jindie")
public class TBdCustomerServiceImpl extends ServiceImpl<TBdCustomerMapper, CustomerEntity> implements TBdCustomerService {


    @Override
    public IPage<CustomerEntity> page2(Page<CustomerEntity> page, QueryWrapper<CustomerEntity> queryWrapper) {
        return baseMapper.page2(page, queryWrapper);
    }

    @Override
    public CustomerEntity getById2(String id) {
        return baseMapper.selectById2(id);
    }

    @Override
    public List<CustomerEntity> list2(QueryWrapper<CustomerEntity> queryWrapper) {
        return baseMapper.list2(queryWrapper);
    }
}